<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>视频通话</title>
    <link rel="stylesheet" href="https://unpkg.com/element-ui@2.15.8/lib/theme-chalk/index.css">
    <link rel="stylesheet" href="./video/style.css">
    <link rel="stylesheet" href="https://unpkg.com/qiaonan@1.0.7/css/style.css">
    <style>
    </style>
</head>

<body>
    <script src="./video/ZegoExpressWebRTC-2.22.0.js"></script>
    <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
    <script src="./video/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.min.js"></script>
    <script src="https://unpkg.com/element-ui@2.15.8/lib/index.js"></script>
    <script src="https://unpkg.com/qiaonan@1.0.7/index.js"></script>
    <script>
        // VConsole 默认会挂载到 `window.VConsole` 上
        // var vConsole = new window.VConsole();
    </script>
    <script type="module" src="./video/zego.js"></script>
    <div id="app">
        <div class="header">
            <el-button @click="quit" size="small" type="warning" icon="el-icon-switch-button">退出</el-button>
            <span style="font-weight: bold;">群视频通话</span>
            <span>通话时间：{{ callTime }}</span>
        </div>
        <h4>{{name}}</h4>
        <div id="local">
            <div id="local-video" @click="openTk({userName:name,userID:userId},-1)" class="own"></div>
        </div>
        <div v-for="(item,index) in streamList" :key="'streamList'+index" :id="'remote'+index">
            <h4>{{ item.userName }}</h4>
            <div :id="'remote-video'+index" class="remote-video" @click="openTk(item,index)"></div>
        </div>

        <transition name="el-fade-in">
            <div class="tankuang" id="tk" v-if="isTk">
                <div class="userInfo">{{ currentUser.userName }}</div>
                <div class="close" @click.stop="close">
                    <i class="el-icon-close"></i>
                </div>
            </div>
        </transition>
    </div>

</body>

</html>